import  tabbar  from "../components/tabbar";
import  navbar  from "../components/header";
import  page  from "../components/page";
import Vant from 'vant';
export default {
    devBaseUrl: "http://127.0.0.1:3030",
    testBaseUrl: "http://127.0.0.1:3000/app/article",
    prodBaseUrl: "http://127.0.0.1:3000/app/article",
    aliOss: {
        host: 'https://losta.oss-cn-shanghai.aliyuncs.com',
    },
    apiList: {
        add: '/user/add',
        login: '/user/login',
        push: '/home/push',
        token: '/home/token',
        tab: "/home/tab"
    },
    vueComponents: [tabbar,navbar,page],
    vuePlugs: [ Vant ],
    checkEnvironment() {
        switch (process.env.NODE_ENV) {
            case "development":
                return this.devBaseUrl
                break;
            case "test":
                return this.testBaseUrl
                break;
            case "production":
                return this.prodBaseUrl
                break;
        }
    }
}